package com;

import com.entity.User;
import com.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class test {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("Springnfdfd.xml");
        UserService userService = (UserService) ctx.getBean("UserService");
        User user = new User(0,"1002154111","456123","你猜","lc@sohu.com",1,"2012-2-2",1,null);
        int in = userService.add(user);
//        List<User> list = userService.infort();
//        for (User user:list){
//            System.out.println(user.getName());
//        }
    }
}
